

#import <UIKit/UIKit.h>
#import "LLButton.h"

@interface LLBaseViewController : UIViewController

@property (assign, nonatomic) CGFloat navH;
@property (assign, nonatomic) CGFloat tabH;
@property (nonatomic, copy) NSString *navTitle;
@property (nonatomic, copy) NSString *leftNavImageName;
@property (nonatomic, copy) NSString *rightNavImageName;
@property (nonatomic, copy) NSString *leftNavTitle;
@property (nonatomic, copy) NSString *rightNavTitle;
@property (nonatomic, strong) UIView *titleView;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) LLButton *leftButton;
@property (nonatomic, strong) LLButton *rightButton;
@property (nonatomic, strong) UIView *lineView;
// 单页模型数组
@property (strong, nonatomic) NSArray *pageModels;
/// 模型数组
@property (strong, nonatomic) NSMutableArray *models;
@property (assign, nonatomic) NSInteger page;
@property (assign, nonatomic) NSInteger totalPage;
@property (assign, nonatomic) NSInteger pageSize;

@property (assign, nonatomic) BOOL haveData;

@property (assign, nonatomic) BOOL showVertifyView;

- (void)prepareData  NS_REQUIRES_SUPER;

- (void)didClickLeftNavAction;
- (void)didClickRightNavAction;
- (NSString *)base64StringFromText:(NSString *)text;
// 字典转json字符串方法
-(NSString *)convertToJsonData:(NSDictionary *)dict;


@property (nonatomic, strong) UIButton *cover;
- (void)coverBtnClick;

typedef void(^countComplete)(void);
typedef void(^countingHandle)(NSString *);
- (void)countDown:(UIButton *)btn complete:(countComplete)complete handle:(countingHandle)handle;


- (NSDate *) getDateFromString:(NSString *)string;

/**
 计算指定时间与当前的时间差
 @param compareDate 某一指定时间
 @return 多少(秒or分or天or月or年)+前 (比如，3天前、10分钟前)
 */
- (NSString *) compareCurrentTime:(NSDate *)compareDate;

@end
